package l.l.test;

/**
 * Created by llw on 2018/3/17/0017.
 */
import java.util.*;
public class Main{

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int m = 0;
        double n = 0,result = 0;
        while(scanner.hasNextInt()) {
           n = (double) scanner.nextInt();
           m = scanner.nextInt();
            for(int i = 1; i <= m; ++i){
                result += n;
                n = Math.pow(n,0.5);
            }
            System.out.printf("%.2f\n",result);
            result = 0;
        }
    }
}